#!/bin/bash

# 创建临时资源目录
mkdir -p ./tmp/elasticsearch/data
mkdir -p ./tmp/elasticsearch/plugins
mkdir -p ./tmp/kafka/data
mkdir -p ./tmp/fluentd/collector/log
mkdir -p ./tmp/filebeat/data
mkdir -p ./tmp/filebeat-collector/data
mkdir -p ./tmp/prometheus/data
mkdir -p ./tmp/grafana/data
mkdir -p ./tmp/beanstalkd/data
mkdir -p ./tmp/db

# 创建微服务日志目录
mkdir -p ./tmp/app/logs/usercenter-api
mkdir -p ./tmp/app/logs/usercenter-rpc
mkdir -p ./tmp/app/logs/assistant-api
mkdir -p ./tmp/app/logs/assistant-rpc
mkdir -p ./tmp/app/logs/chat-rpc
mkdir -p ./tmp/app/logs/chat-api
mkdir -p ./tmp/app/logs/chat-jobs/batch-insert
mkdir -p ./tmp/app/logs/aichat-rpc
mkdir -p ./tmp/app/logs/rag-rpc
mkdir -p ./tmp/app/logs/paperfile-rpc
mkdir -p ./tmp/app/logs/paperfile-api
mkdir -p ./tmp/app/logs/jobs/pdfparser-job

echo "所有目录已成功创建"